package com.ad.pet.app.account.share;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.models.remote.account.share.SharePriceItem;

import java.util.List;

/**
 * Created by liuyixiang on 2019/9/21.
 */

public class ShareFrendAdapter extends BaseQuickAdapter<SharePriceItem, BaseViewHolder> {


    public ShareFrendAdapter(@Nullable List<SharePriceItem> data) {
        super(R.layout.item_share_money_earn_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SharePriceItem item) {
        TextView tvFriendList = helper.getView(R.id.tv_friend_list);
        TextView tvPrice = helper.getView(R.id.tv_price);
        TextView tvDate = helper.getView(R.id.tv_date);

        tvFriendList.setText(item.getUser_name());
        tvPrice.setText(item.getPrice());
        tvDate.setText(item.getTime());
    }
}
